package com.hellobike.haxing.modules.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
/**
 * @Description: c端用户信息
 * @Author: haxing-boot
 * @Date:   2021-01-11
 * @Version: V1.0
 */
@Data
@TableName("t_user")
public class User implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.AUTO)
        private Long id ;
	/**用户昵称*/
	@Excel(name = "用户昵称", width = 15)
        private String nickname ;
	/**头像*/
	@Excel(name = "头像", width = 15)
        private String profilePhoto ;
	/**用户类型,1普通用户,2团长*/
	@Excel(name = "用户类型,1普通用户,2团长", width = 15)
        private Integer userType ;
	/**微信手机号*/
	@Excel(name = "微信手机号", width = 15)
        private String mobile ;
	/**createTime*/
	@Excel(name = "createTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
        private Date createTime ;
	/**updateTime*/
	@Excel(name = "updateTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
        private Date updateTime ;
	/**createBy*/
	@Excel(name = "createBy", width = 15)
        private Integer createBy ;
	/**updateBy*/
	@Excel(name = "updateBy", width = 15)
        private Integer updateBy ;
	/**deleted*/
	@Excel(name = "deleted", width = 15)
      @TableLogic
      private Integer deleted ;
	/**1男性，2女性*/
	@Excel(name = "1男性，2女性", width = 15)
        private Integer sex ;
	/**realname*/
	@Excel(name = "realname", width = 15)
        private String realname ;
	/**哈罗系统账号ID*/
	@Excel(name = "哈罗系统账号ID", width = 15)
        private String guid ;
	/**enableShowMobile*/
	@Excel(name = "enableShowMobile", width = 15)
        private Integer enableShowMobile ;
	/**shareCode*/
	@Excel(name = "shareCode", width = 15)
        private String shareCode ;
	/**inviteCode*/
	@Excel(name = "inviteCode", width = 15)
        private String inviteCode ;
	/**email*/
	@Excel(name = "email", width = 15)
        private String email ;
}
